package com.g2.rpc.remoting;

import java.util.List;

/**
 * 描述:
 * ${DESCRIPTION}
 *
 * @author lingjiu.kong
 * @version 1.0
 * @date 2021-03-08 23:02
 */
public interface Codec {

    byte[] encode(Object msg) throws Exception;

    List<Object> decode(byte[] message) throws Exception;

    Codec createInstance();

}
